/*
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-09-26 16:00:46
 * @LastEditTime: 2020-08-19 12:08:47
 * @LastEditors: Please set LastEditors
 */
import request from "@/http/request.js";

export default {
    // 示例get请求
    getInfo(params){
        return new request({
            url:'/interface',
            method:"get",
            params
        })
    },
    // 示例post请求
    post(data){
        return new request({
            url:'/interface',
            method:"post",
            data
        })
    },
    // 上传formdata文件
    upload(data){
        return new request({
            url:'/travel/upload/upload',
            method:"post",
            data
        })
    },
    // 最新段子
    /* type=1 : 全部
    type=2 : 文字
    type=3 : 图片
    type=4 : gif
    type=5 : 视频
    page=1:页码 */
    getJoke(params){
        return new request({
            url:'/open/satinGodApi?type=1',
            method:"get",
            params
        })
    },
}
